import {makeAutoObservable} from "mobx";
import {useState} from "react";

class Store {
    constructor() {
        makeAutoObservable(this);
    }
    rowdata = {};
    user = "";
    token = "";

    count = 0;
    type = "";
    lowestData = "";
    highestData = "";
    nameData = "";
    leval = 0;
    rukuData=[];
    xiangqingData=[];
    // height=true
    setXiangqingData = (val) => {
        this.xiangqingData = val;
    };
    setLeval = (val) => {
        this.leval = val;
    };
    setrukuData = (val) => {
        this.rukuData = val;
    };
    setType = (val) => {
        this.type = val;
    };
    setCount = (val) => {
        this.count = val;
    };
    setLowestData = (val) => {
        this.lowestData = val;
    };
    setHighestData = (val) => {
        this.highestData = val;
    };
    setnameData = (val) => {
        this.nameData = val;
    }
    setUser = (val) => {
        this.user = val;
    };
    setToken = (val) => {
        this.token = val;
      };


}

let store = new Store();
export default store;
